<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
// 原型继承

    // 构造函数
    function Person(){
        this.nuame="张三"
    }
    // Person 的实例化对象
    let p1=new Person()

    // 构造函数
    function Student(){}

    // 原型继承
    Student.prototype=p1
    // 实例化Student
    let s1=new Student()

    console.log(s1.nuame);
</script>
</html>